package com.itheima.util;

public class BaseContext {
    private static final ThreadLocal<Long> THREAD_LOVAL_USERID =new ThreadLocal<>();


    public static Long getCurrentId(){
        return THREAD_LOVAL_USERID.get();
    }

    public static void setCurrentId(Long currentId){
        THREAD_LOVAL_USERID.set(currentId);
    }
}
